<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="MediaDataSet" targetNamespace="http://tempuri.org/MediaDataSet.xsd" xmlns:mstns="http://tempuri.org/MediaDataSet.xsd" xmlns="http://tempuri.org/MediaDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="SocialNetworkConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="SocialNetworkConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.WLQuickApps.SocialNetwork.Data.Properties.Settings.GlobalReference.Default.SocialNetworkConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="MediaTableAdapter" GeneratorDataComponentClassName="MediaTableAdapter" Name="Media" UserDataComponentName="MediaTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="SocialNetworkConnectionString (Settings)" DbObjectName="SocialNetwork.dbo.Media" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        BaseItemID, AlbumBaseItemID
FROM            Media</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="BaseItemID" DataSetColumn="BaseItemID" />
              <Mapping SourceColumn="AlbumBaseItemID" DataSetColumn="AlbumBaseItemID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="SocialNetworkConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="CreateMedia" Modifier="Public" Name="CreateMedia" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="CreateMedia">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>INSERT INTO [dbo].[Media] ([AlbumBaseItemID], BaseItemID)
VALUES (@albumBaseItemID, @baseItemID);

SELECT SCOPE_IDENTITY();</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="albumBaseItemID" ColumnName="AlbumBaseItemID" DataSourceName="SocialNetwork.dbo.Media" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@albumBaseItemID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="AlbumBaseItemID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="baseItemID" ColumnName="BaseItemID" DataSourceName="SocialNetwork.dbo.Media" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@baseItemID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="BaseItemID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
              </DbSource>
              <DbSource ConnectionRef="SocialNetworkConnectionString (Settings)" DbObjectName="SocialNetwork.dbo.Media" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetMedia" GetMethodModifier="Public" GetMethodName="GetMedia" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetMedia" UserSourceName="GetMedia">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT AlbumBaseItemID, BaseItemID FROM Media WHERE (BaseItemID = @baseItemID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="baseItemID" ColumnName="BaseItemID" DataSourceName="SocialNetwork.dbo.Media" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@baseItemID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="BaseItemID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="SocialNetworkConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetMediaByAlbumBaseItemID" GeneratorSourceName="FillAllMediaByAlbumID" GetMethodModifier="Public" GetMethodName="GetMediaByAlbumBaseItemID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetMediaByAlbumBaseItemID" UserSourceName="GetMediaByAlbumBaseItemID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>WITH PageTable AS
(
SELECT AlbumBaseItemID, BaseItemID 

		, ROW_NUMBER() over (ORDER BY BaseItemID) as RowID

FROM Media WHERE (AlbumBaseItemID = @albumBaseItemID)

)

select * from PageTable
where RowID between (@startRowIndex + 1) and (@startRowIndex + @maximumRows)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="albumID" ColumnName="AlbumID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@albumBaseItemID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="AlbumID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@startRowIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@maximumRows" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="SocialNetworkConnectionString (Settings)" DbObjectName="SocialNetwork.dbo.Media" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetMediaByAlbumBaseItemIDAndImageURL" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetMediaByAlbumBaseItemIDAndImageURL" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetMediaByAlbumBaseItemIDAndImageURL" UserSourceName="GetMediaByAlbumBaseItemIDAndImageURL">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        Media.BaseItemID, Media.AlbumBaseItemID
FROM            Media INNER JOIN
                         BaseItem ON Media.BaseItemID = BaseItem.BaseItemID
WHERE        (BaseItem.ImageURL = @imageURL
                          AND (Media.AlbumBaseItemID = @albumID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="imageURL" ColumnName="ImageURL" DataSourceName="SocialNetwork.dbo.BaseItem" DataTypeServer="varchar(255)" DbType="AnsiString" Direction="Input" ParameterName="@imageURL" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="ImageURL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="albumID" ColumnName="AlbumBaseItemID" DataSourceName="SocialNetwork.dbo.Media" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@albumID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="AlbumBaseItemID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="SocialNetworkConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="GetMediaByAlbumBaseItemIDCount" Modifier="Public" Name="GetMediaByAlbumBaseItemIDCount" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="GetMediaByAlbumBaseItemIDCount">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT COUNT(*)
FROM Media WHERE (AlbumBaseItemID = @albumBaseItemID)
</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="albumBaseItemID" ColumnName="AlbumBaseItemID" DataSourceName="SocialNetwork.dbo.Media" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@albumBaseItemID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="AlbumBaseItemID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="SocialNetworkConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetMediaForLocation" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetMediaForLocation" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetMediaForLocation" UserSourceName="GetMediaForLocation">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>WITH PageTable AS (SELECT        Media.BaseItemID, Media.AlbumBaseItemID, ROW_NUMBER() OVER (ORDER BY AverageRating DESC) AS RowID
FROM            Media INNER JOIN
                         BaseItem ON Media.BaseItemID = BaseItem.BaseItemID
WHERE        (BaseItem.LocationID = @locationID) AND (BaseItem.ThumbnailBits IS NOT NULL))
    SELECT        *
     FROM            PageTable
     WHERE        RowID BETWEEN (@startRowIndex + 1) AND (@startRowIndex + @maximumRows)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="locationID" ColumnName="LocationID" DataSourceName="SocialNetwork.dbo.BaseItem" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@locationID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="LocationID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@startRowIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@maximumRows" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="SocialNetworkConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="GetMediaForLocationCount" Modifier="Public" Name="GetMediaForLocationCount" QueryType="Scalar" ScalarCallRetval="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="GetMediaForLocationCount">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT COUNT(Media.BaseItemID) FROM Media
INNER JOIN BaseItem
ON Media.BaseItemID = BaseItem.BaseItemID
WHERE BaseItem.LocationID = @locationID
AND BaseItem.ThumbnailBits IS NOT NULL</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="locationID" ColumnName="LocationID" DataSourceName="SocialNetwork.dbo.BaseItem" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@locationID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="LocationID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="SocialNetworkConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetMediaOfTypeByAlbumBaseItemID" GeneratorSourceName="FillAllMediaOfTypeByAlbumID" GetMethodModifier="Public" GetMethodName="GetMediaOfTypeByAlbumBaseItemID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetMediaOfTypeByAlbumBaseItemID" UserSourceName="GetMediaOfTypeByAlbumBaseItemID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>WITH PageTable AS
(
SELECT Media.AlbumBaseItemID, Media.BaseItemID 

		, ROW_NUMBER() over (ORDER BY Media.BaseItemID) as RowID

FROM Media INNER JOIN BaseItem ON Media.BaseItemID = BaseItem.BaseItemID WHERE (Media.AlbumBaseItemID = @albumBaseItemID) AND (BaseItem.SubType = @mediaType)
)

select * from PageTable
where RowID between (@startRowIndex + 1) and (@startRowIndex + @maximumRows)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="albumID" ColumnName="AlbumID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@albumBaseItemID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="AlbumID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="mediaType" ColumnName="SubType" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@mediaType" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="SubType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@startRowIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@maximumRows" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="SocialNetworkConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="GetMediaOfTypeByAlbumBaseItemIDCount" Modifier="Public" Name="GetMediaOfTypeByAlbumBaseItemIDCount" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="GetMediaOfTypeByAlbumBaseItemIDCount">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT COUNT(*)
FROM Media INNER JOIN BaseItem ON Media.BaseItemID = BaseItem.BaseItemID WHERE (Media.AlbumBaseItemID = @albumBaseItemID) AND (BaseItem.SubType = @mediaType)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="albumBaseItemID" ColumnName="AlbumBaseItemID" DataSourceName="SocialNetwork.dbo.Media" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@albumBaseItemID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="AlbumBaseItemID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="mediaType" ColumnName="SubType" DataSourceName="SocialNetwork.dbo.BaseItem" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@mediaType" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="SubType" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="SocialNetworkConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetMostRecentMedia" GetMethodModifier="Public" GetMethodName="GetMostRecentMedia" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetMostRecentMedia" UserSourceName="GetMostRecentMedia">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>WITH PageTable AS
(
SELECT Media.AlbumBaseItemID, Media.BaseItemID 

		, ROW_NUMBER() over (ORDER BY BaseItem.CreateDate desc) as RowID

FROM Media INNER JOIN BaseItem ON Media.BaseItemID = BaseItem.BaseItemID 
WHERE (BaseItem.SubType like @mediaType)

)

select * from PageTable
where RowID between (@startRowIndex + 1) and (@startRowIndex + @maximumRows)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="mediaType" ColumnName="SubType" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@mediaType" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="SubType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@startRowIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@maximumRows" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="SocialNetworkConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="GetTotalMediaCount" Modifier="Public" Name="GetTotalMediaCount" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="GetTotalMediaCount">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT COUNT(*) FROM Media inner join baseitem on Media.BaseItemID = BaseItem.BaseItemID
WHERE (BaseItem.SubType = @mediaType)
</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="mediaType" ColumnName="SubType" DataSourceName="SocialNetwork.dbo.BaseItem" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@mediaType" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="SubType" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="SocialNetworkConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy7" GeneratorSourceName="UpdateMedia" Modifier="Public" Name="UpdateMedia" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy5" UserSourceName="UpdateMedia">
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>UPDATE [dbo].[Media] SET [AlbumBaseItemID] = @albumBaseItemID
WHERE BaseItemID = @baseItemID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="albumBaseItemID" ColumnName="AlbumBaseItemID" DataSourceName="SocialNetwork.dbo.Media" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@albumBaseItemID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="AlbumBaseItemID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="baseItemID" ColumnName="BaseItemID" DataSourceName="SocialNetwork.dbo.Media" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@baseItemID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="BaseItemID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="MediaDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="MediaDataSet" msprop:Generator_DataSetName="MediaDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Media" msprop:Generator_UserTableName="Media" msprop:Generator_RowDeletedName="MediaRowDeleted" msprop:Generator_RowChangedName="MediaRowChanged" msprop:Generator_RowClassName="MediaRow" msprop:Generator_RowChangingName="MediaRowChanging" msprop:Generator_RowEvArgName="MediaRowChangeEvent" msprop:Generator_RowEvHandlerName="MediaRowChangeEventHandler" msprop:Generator_TableClassName="MediaDataTable" msprop:Generator_TableVarName="tableMedia" msprop:Generator_RowDeletingName="MediaRowDeleting" msprop:Generator_TablePropName="Media">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="BaseItemID" msprop:Generator_UserColumnName="BaseItemID" msprop:Generator_ColumnPropNameInRow="BaseItemID" msprop:Generator_ColumnVarNameInTable="columnBaseItemID" msprop:Generator_ColumnPropNameInTable="BaseItemIDColumn" type="xs:int" />
              <xs:element name="AlbumBaseItemID" msprop:Generator_UserColumnName="AlbumBaseItemID" msprop:Generator_ColumnPropNameInRow="AlbumBaseItemID" msprop:Generator_ColumnVarNameInTable="columnAlbumBaseItemID" msprop:Generator_ColumnPropNameInTable="AlbumBaseItemIDColumn" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Media" />
      <xs:field xpath="mstns:BaseItemID" />
    </xs:unique>
  </xs:element>
</xs:schema>